/*
 * liangS.js
 */



$.post("http://120.77.149.2/Merchant/Servers/Servicelist", function(result) {
	var length = result.Data.length;
		console.log(result.Data);

//	console.log(result.Data.Data[0].CreateTime.substring(6, 19) - 0)
	
	var box = document.getElementById("myBox");
	var text = document.getElementById("text");
	//      var box = document.body;
	//      console.log(body)
		text.innerHTML = "共计 "+ length +" 条数据"
	for(var index = 0; index <= length; index++) {
		

		box.innerHTML += 
		
			" <tr><td class='text-center active'>" + result.Data[index].Category + "</td>" +
			"<td class='text-center '>" + result.Data[index].Host + "</td>" +
			"<td class='text-center success'>" + result.Data[index].Id + "</td>" +
			"<td class='text-center '>" + result.Data[index].merid + "</td>" +
			"<td class='text-center warning'>" + result.Data[index].MirName + "</td>" +
			"<td class='text-center'>" + result.Data[index].Path + "</td>" +
			"<td class='text-center danger'>" + result.Data[index].Sort + "</td>" +
			"<td class='text-center'>" + result.Data[index].Stop + "</td>" +
			"<td class='text-center info'>" + result.Data[index].TempName + "</td>" +
			"<td class='text-center'>" + result.Data[index].URL + "</td>" +
			
			
			
		"</tr>  "
	
		
	}
});